package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.entity.Account;
import com.example.domain.entity.Params;
import com.example.domain.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    List<User> findAll();
    Page<User> findBySearch(Params params);
    void add(User user);
    void update(User user);
    void delete(Integer id);
    Account login(Account student, String key, HttpServletRequest request);
    User findById(Integer id);
    void register(Account account);
    void updatePassword(Account account);
    void updatePersonal(Account account);
}